import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-ng-md',
  templateUrl: './ng-md.component.html',
  styleUrls: ['./ng-md.component.css']
})
export class NgMdComponent implements OnInit {

  status = 0;
  currentClasses = {};
  canSave = true;
  isUnchanged = true;
  isSpecial = true;
  currentTime: Date = new Date();

  constructor() { }

  ngOnInit() {
  }



  setCurrentClasses() {
    this.currentClasses = {
       'saveable': this.canSave,
       'modified': this.isUnchanged,
       'special': this.isSpecial
    }
  }

}
